name := "akka-cluster"

version := "1.0"

organization := "com.galudisu"

libraryDependencies ++= {
  val akkaVersion = "2.4.17"
  val akkaHttpVersion = "10.0.6"
  Seq(
    "com.typesafe.akka"         %% "akka-actor"               % akkaVersion withSources(),
    "com.typesafe.akka"         %% "akka-slf4j"               % akkaVersion withSources(),
    "com.typesafe.akka"         %% "akka-remote"              % akkaVersion withSources(),
    "com.typesafe.akka"         %% "akka-http"                % akkaHttpVersion withSources(),
    "com.typesafe.akka"         %% "akka-http-xml"            % akkaHttpVersion withSources(),
    "com.typesafe.akka"         %% "akka-http-spray-json"     % akkaHttpVersion withSources(),
    "ch.megard"                 %% "akka-http-cors"           % "0.1.11",
    "com.typesafe.akka"         %% "akka-cluster"             % akkaVersion withSources(),
    "com.typesafe.akka"         %% "akka-cluster-metrics"     % akkaVersion withSources(),
    "com.typesafe.akka"         %% "akka-cluster-tools"       % akkaVersion withSources(),
    "com.typesafe.akka"         %% "akka-multi-node-testkit"  % akkaVersion     % "test" withSources(),
    "com.typesafe.akka"         %% "akka-testkit"             % akkaVersion     % "test" withSources(),
    "org.scalatest"             %% "scalatest"                % "3.0.0"         % "test" withSources(),
    "org.fusesource"            % "sigar"                     % "1.6.4"
  )
}

// Assembly settings
mainClass in Global := Some("com.galudisu.Main")

assemblyJarName in assembly := "akka-node.jar"
